package com.ddtech.framework.security.security;

import com.ddtech.framework.security.constant.ScanLoginEnum;
import lombok.AllArgsConstructor;

/**
 * @author bin
 */
@AllArgsConstructor
public class ScanLogin {
    /**
     * 扫码状态
     */
    private Integer status;
    /**
     * 扫码信息
     */
    private String message;
    /**
     * token
     */
    private String token;
    /**
     * 用户信息
     */
    private JwtUser user;

    public ScanLogin() {
    }

    public ScanLogin(ScanLoginEnum scanLoginEnum) {
        this.status = scanLoginEnum.getStatus();
        this.message = scanLoginEnum.getMessage();
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public JwtUser getUser() {
        return user;
    }

    public void setUser(JwtUser user) {
        this.user = user;
    }
}
